<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MVVM模型</title>
    <!-- 引入vue -->
    <!-- <script type="text/javascript" src="../js/vue.js"></script> -->
    <script type="text/javascript" src="../js/vue.js"></script>
</head>

<body>


    <div id="root">
        <h1>学校名称：{{name}}</h1>
        <h1>学校地址:{{address}}</h1>

    </div>

    <script type="text/javascript">
        Vue.config.productionTip = false  // 组织vue 在启动时生成生产提示

        const vm = new Vue({
            el: "#root",
            data: {
                name: 'lyuetw大学',
                address: '珠海市斗门区官冲'
            }
        })

        console.log(vm)

    </script>



</body>

</html>